package model

import "time"

type CoreAccount struct {
	ID         uint   		`gorm:"primary_key;AUTO_INCREMENT";json:"id"`
	Username   string 		`gorm:"type:varchar(50);not null;index:user_idx";json:"username"`
	Password   string 		`gorm:"type:varchar(150);not null";json:"password,omitempty"`
	Rule       string 		`gorm:"type:varchar(10);not null";json:"rule"`
	RealName   string 		`gorm:"type:varchar(50);";json:"realName"`
	Avatar	   string 		`gorm:"type:varchar(128);";json:"avatar"`
	Deleted    bool			`gorm:"type:bit(1);";json:"deleted,omitempty"`
	CreateAt   time.Time 	`gorm:"type:timestamp;";json:"createAt"`
	UpdateAt   time.Time 	`gorm:"type:timestamp;default:current_timestamp on update current_timestamp";json:"updateAt"`
}


